// stores/useBottomNavStore.js
import { defineStore } from 'pinia'
import { ref, computed } from 'vue'

export const useBottomBarStore = defineStore('bottomBar', () => {
  // 存储创建的数据
  const createBottomBarData = ref([])


  // 计算属性：是否有创建的数据
  const hasCreateBottomBarData = computed(() => createBottomBarData.value.length > 0)

  return {
    createBottomBarData,
    hasCreateBottomBarData,
  }
})
